#ifndef MEETINGFACTORY_H
#define MEETINGFACTORY_H

#include <string>
#include "jobMeeting.h"		
#include "pleasureMeeting.h"		

using namespace std;

class MeetingFactory {
public:
	static Meeting* CreateMeeting(const string& what,const vector<string>& part,const string& subj,const string& day, int sHour, int sMin, 
	                                                             int eHour, int eMin)  
	{
		Meeting* ptrMeeting = 0;
  		if (what == "job")   
			ptrMeeting = new jobMeeting(part,subj,day,sHour,sMin,eHour,eMin);
  		if (what == "pleasure") 
			ptrMeeting = new pleasureMeeting(part,subj,day,sHour,sMin,eHour,eMin);
		return ptrMeeting;
	};
private:
	~MeetingFactory();
	MeetingFactory();
};

#endif